<?php
function return_img_thump ($strFile,$intWidth = 100,$intHeight = 100){
	require('thumbnail/thumbnail_party.class.php');
	
	$name			= 'test';
	$strColor       = 'ffffff';
	
	if ($intWidth == 0) $intWidth = 100;
	if ($intHeight == 0) $intHeight = 100;
	// Build thumbnail_party object
	$thumb =& new thumbnail_party($intWidth, $intHeight, $strColor, 'jpg','',$name);
	$thumb->intJPEGQuality = 90;
	// Select enlarge mode for source image that smaller then output size
	
	$strFile = urldecode($strFile);
	
	if (!$thumb->set_source_file($strFile)) err_img_builder($thumb->get_error_msg());
	
	return $thumb->output();

}
?>